package model

import "time"

type ShortLink struct {
	ID          int       `gorm:"primary_key"`
	ShortLink   string    `gorm:"uniqueIndex;size:20"`
	OriginalURL string    `gorm:"type:text"`
	Clicks      uint      `json:"clicks" default:"0"`
	LastClickAt time.Time `json:"last_click_at"`
	CreatedAt   time.Time `json:"created_at"`
}
